/**
 * 
 */
package com.shine.icis.dto;

/**
 * 对应A02营业部信息
 * @author zsy
 *
 */
public class DeptInfo {
	private DeptInfoId id;//证券公司营业部代码
	private String deptName;//证券公司营业部名称
	private String occurDate;//
	private long recordNo;
	
	public long getRecordNo() {
		return recordNo;
	}
	public void setRecordNo(long recordNo) {
		this.recordNo = recordNo;
	}
	public DeptInfoId getId() {
		return id;
	}
	public void setId(DeptInfoId id) {
		this.id = id;
	}
	public void setId(String deptCode, String intDeptCode) {
		id = new DeptInfoId();
//		id.setCompanyCode(companyCode);
		id.setDeptCode(deptCode);
		id.setIntDeptCode(intDeptCode);
	}
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	
	public String getOccurDate() {
		return occurDate;
	}
	public void setOccurDate(String occurDate) {
		this.occurDate = occurDate;
	}
	public String getFormatOccurDate() {
		StringBuffer date = new StringBuffer(occurDate);
		date.insert(6, "-").insert(4, "-");
		return date.toString();
	}
	public class DeptInfoId {
//		private String companyCode;//证券公司代码
		private String deptCode;//证券公司营业部代码
		private String intDeptCode;//证券公司营业部内部代码
//		public String getCompanyCode() {
//			return companyCode;
//		}
//		public void setCompanyCode(String companyCode) {
//			this.companyCode = companyCode;
//		}
		public String getDeptCode() {
			return deptCode;
		}
		public void setDeptCode(String deptCode) {
			this.deptCode = deptCode;
		}
		public String getIntDeptCode() {
			return intDeptCode;
		}
		public void setIntDeptCode(String intDeptCode) {
			this.intDeptCode = intDeptCode;
		}
		
	}
}
